package com.artist.service.Impl;

import com.artist.entity.TbWorking;
import com.artist.mapper.WorkingMapper;
import com.artist.service.WorkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkingServiceImpl implements WorkingService {
    @Autowired
    private WorkingMapper mapper;

    @Override
    public List<TbWorking> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public TbWorking selectWorkingByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public void savaWorking(TbWorking tbWorking) {
        mapper.insertSelective(tbWorking);
    }

    @Override
    public void updateWorkingByPrimaryKeySelective(TbWorking tbWorking) {
        mapper.updateByPrimaryKeySelective(tbWorking);

    }

    @Override
    public void deleteWorkingByPrimaryKey(Long id) {
        mapper.deleteByPrimaryKey(id);

    }
}

